<template>
  <textarea id="tinymceEditer"></textarea>
</template>

<script>
import tinymce from 'tinymce';
export default {
  name: 'Tinymce',
  methods: {
    _initialize() {
      this.$nextTick(() => {
        let _this = this;
        let height = document.body.offsetHeight - 300;
        tinymce.init({
          selector: '#tinymceEditer'
        });
      });
    }
  },
  mounted() {
    this._initialize();
  },
  destroyed() {
    //tinymce.get('tinymceEditer').destroy();
  }
}
</script>